// JavaScript Document
     //var ad114ClassConfig= { index: 0, ad114Arr: [] };
     if (typeof ad114ClassConfig == "undefined")
        eval("var ad114ClassConfig = {index:0,ad114Arr:[]}");

     function ad144Class(pid, configArr, step) {
         var initConfig = function() {
             for (var i = 0; i < configArr.length; i++) {
                 (new Image()).src = configArr[i].src;
             }
         }
         initConfig();
         var getDivId = function(id) {
             var i = 0;
             while (document.getElementById(id + i)) {
                 i++;
             }
             return id + i;
         }
         var bigImgId = getDivId("ad114Img");
         var bigImgLinkId = getDivId("ad114Link");
         var _this = this;
   //      var $g = document.getElementById;
         var nn = 0;
         var key = 0;
         var tt;
         if (!step)
             step = 5000;
         this.start = function(index) {
             if (index > -1) {
                 nn = index;
             }
             if (key == 0) {
                 key = 1;
             } else if (document.all) {
                 document.getElementById(bigImgId).filters[0].Apply();
                 document.getElementById(bigImgId).filters[0].Play(duration = 2);
             }
             if (configArr[nn] == undefined)
                 nn = 0;
             eval("document.getElementById(\"" + bigImgId + "\").src='" + configArr[nn].src + "';");
             eval("document.getElementById(\"" + bigImgLinkId + "\").href='" + configArr[nn].link + "';");

             var nextDiv = document.getElementById(bigImgLinkId).parentNode.nextSibling;
             if (nextDiv.nodeName != "DIV")
                 nextDiv = nextDiv.nextSibling;
             var aArr = nextDiv.getElementsByTagName("a");

             for (var i = 0; i < configArr.length; i++) {
                 aArr[i].className = 'axx';
             }
             aArr[nn].className = 'bxx';
             nn++;
             if (nn > aArr.length - 1) {
                 nn = 0;
             }
             tt = setTimeout(function() {
                 _this.start(-1);
             }, step);
         };
         this.changeimg = function(index) {
             clearTimeout(tt);
             _this.start(index);
         };
         this.create = function(widths,heights) {
             var div = document.createElement("div");
             var v = "<div class=\"Picshow_main\" style=\"width: "+widths+"px; height: "+heights+"px;\">";
             v += "<div>";
             v += "<a id=\"" + bigImgLinkId + "\">";
             v += "<img id=\"" + bigImgId + "\" class=\"IMGbig\" style=\"width:" + widths + "px; height:" + heights + "px;\" /></a></div>";
             v += "<div class=\"Picshow_change\">";
             for (var i = 0; i < configArr.length; i++) {
                 v += "<a href=\"javascript:changeimg(" + i + "," + ad114ClassConfig.index + ");\" class=\"axx\" target=\"_self\">";
                 v += "<img src=\"" + configArr[i].src + "\">";
                 v += "</a>";
             }
             v += "</div></div>";
             div.innerHTML = v;
             ad114ClassConfig.index++;
             ad114ClassConfig.ad114Arr.push(_this);
             document.getElementById(pid).insertBefore(div, null);
         };
         this.create(1004,590);
         this.start();
     }

     function changeimg(index, classIndex) {
         for (var i = 0; i < ad114ClassConfig.ad114Arr.length; i++) {
             if (classIndex == i) {
                 ad114ClassConfig.ad114Arr[i].changeimg(index);
                 break;
             }
         }
     }
	 
	  
	 
	 